const student = require('../models/Student');
exports.addStudent = function (studentObj) {
    return student.create(studentObj);
}
exports.deleteStudent = async function (studentId) {
    student.destroy({
        where: {
            id: studentId
        }
    })
}
exports.updateStudent = function (id, studentObj) {
    student.update(studentObj, {
        where: {
            id
        }
    })
}
